package yhao.demo.service.person.apilist.form;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import yhao.infra.apilist.validate.IdUnForm;

import javax.validation.constraints.NotNull;
/**
 * 人员记录保存Form
 * Created by yoara on 2019-03-28
 */
public class PersonInsertForm extends IdUnForm {
	@ApiModelProperty(value = "手机号、登录名",required = true)
	@NotBlank(message = "请输入手机号、登录名")
	private String phone;

	@ApiModelProperty(value = "姓名",required = true)
	@NotBlank(message = "请输入姓名")
	private String name;

	@ApiModelProperty(value = "密码",required = true)
	@NotBlank(message = "请输入密码")
	private String password;

	@ApiModelProperty(value = "是否为超级用户",required = true)
	@NotNull(message = "请输入是否为超级用户")
	private Boolean isAdmin;


	public void setPhone(String phone){
		this.phone = phone;
	}

	public String getPhone(){
		return phone;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getName(){
		return name;
	}

	public void setPassword(String password){
		this.password = password;
	}

	public String getPassword(){
		return password;
	}

	public void setIsAdmin(Boolean isAdmin){
		this.isAdmin = isAdmin;
	}

	public Boolean getIsAdmin(){
		return isAdmin;
	}

}
